// GroupInfo.cpp : implementation file
// Download by http://www.NewXing.com

#include "stdafx.h"
#include "AddressList.h"
#include "GroupInfo.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CGroupInfo

IMPLEMENT_DYNAMIC(CGroupInfo, CRecordset)

CGroupInfo::CGroupInfo(CDatabase* pdb)
	: CRecordset(pdb)
{
	//{{AFX_FIELD_INIT(CGroupInfo)
	m_id = 0;
	m_groupName = _T("");
	m_nFields = 2;
	//}}AFX_FIELD_INIT
	m_nDefaultType = snapshot;
}


CString CGroupInfo::GetDefaultConnect()
{
	return _T("ODBC;DSN=address");
}

CString CGroupInfo::GetDefaultSQL()
{
	return _T("[groupInfo]");
}

void CGroupInfo::DoFieldExchange(CFieldExchange* pFX)
{
	//{{AFX_FIELD_MAP(CGroupInfo)
	pFX->SetFieldType(CFieldExchange::outputColumn);
	RFX_Long(pFX, _T("[id]"), m_id);
	RFX_Text(pFX, _T("[groupName]"), m_groupName);
	//}}AFX_FIELD_MAP
}

/////////////////////////////////////////////////////////////////////////////
// CGroupInfo diagnostics

#ifdef _DEBUG
void CGroupInfo::AssertValid() const
{
	CRecordset::AssertValid();
}

void CGroupInfo::Dump(CDumpContext& dc) const
{
	CRecordset::Dump(dc);
}
#endif //_DEBUG
